import React,{Component} from 'react';
import { connect } from 'react-redux'
//共享导航
import ScrollMenu from '../components/commons/ScrollMenu';
import {index_data} from '../actions'


class AppView extends Component{
  constructor(props) {
    super(props)
  }
  componentDidMount(){
    // alert('IndexView componentDidMount')
  }
  render(){
    return(
      <div className="appView_wrapper">
        {this.props.children}
        <ScrollMenu />
      </div>
    )
  }
}

const mapStateToProps = (state) => {
  const now_data = state.app.now_data;
  return {
    now_data:now_data,
  }
}

export default connect(mapStateToProps)(AppView)
